/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package somsinfinal;

import java.awt.Image;
import javax.swing.ImageIcon;

/**
 *
 * @Somsin Corp.
 */
public class turret {

    private int x;
    private int y;
    int w, z;
    int dx, dy;
    Image img;
    boolean visible;

    public turret() {
        x = 108;
        y = 172;

        ImageIcon i = new ImageIcon("./images/turret2.png");

        img = i.getImage();
        visible = true;

    }

    public void move() {
        x = x + dx;
        y += dy;

    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public Image getImage() {
        return img;
    }
  
    /**
     * @return the x
     */
    public int getTurretX() {
        return x;
    }

    /**
     * @return the y
     */
    public int getTurretY() {
        return y;
    }
}
